package com.example.demo.service.Imp;


import com.example.demo.dao.RoleMapper;
import com.example.demo.model.Role;
import com.example.demo.service.RoleService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 作者：石红宝
 * 内容：角色表服务层
 * 时间：2019-5-27
 */
@Service
public class RoleServiceImp implements RoleService{
    @Autowired
    private RoleMapper roleMapper;
    @Override
    public List<Role>setAll(){
        return roleMapper.setAll();
    }
    @Override
    public List<Role>bangding(){
        return  roleMapper.bangding();
    }

    @Override
    public int insertUser(Role rolemodel){
        return roleMapper.insertUser(rolemodel);
    }
    @Override
    public int update(Role rolemodel){
        return roleMapper.update(rolemodel);
    }

    @Override
    public int del(Integer rid) {
        return roleMapper.del(rid);
    }
    @Override
  public Role selectKey(Integer rid){
        return  roleMapper.selectKey(rid);
    }
}
